//
// Created by liaoy on 2021/8/23.
//

#ifndef _EM_VM_STUB_H
#define _EM_VM_STUB_H

#include <stdlib.h>
#include <string.h>

int alloc_cnt;

static inline void *vm_malloc(uint32_t size)
{
    alloc_cnt += 1;
    return malloc(size);
}

static inline void vm_free(void *p)
{
    alloc_cnt -= 1;
    free(p);
}

#endif //_EM_VM_STUB_H
